//    Copyright (C) Kherty.  All rights reserved.
using System.Diagnostics.Contracts;
using System.Windows.Input;

namespace OpenLS.Spreadsheet.UI.Internals
{
    class ExecutedCommand
    {
        private readonly RoutedCommand _command;
        private readonly object _parameter;

        public ExecutedCommand(RoutedCommand command, object parameter)
        {
            Contract.Requires(command != null);
            _command = command;
            _parameter = parameter;
        }

        public object Parameter
        {
            get { return _parameter; }
        }

        public RoutedCommand Command
        {
            get { return _command; }
        }
    }
}